1 import java.awt.*;
2 import java.awt.event.*;
3
4 public class PerfSlave extends Frame implements WindowListener {
5 public PerfSlave() {
6 addWindowListener(this);
7 }
8
9 public void windowOpened(WindowEvent e) {
10 }
11
12 public void windowClosing(WindowEvent e) {
13 System.exit(0);
14 }
15
16 public void windowClosed(WindowEvent e) {
17 }
18
19 public void windowIconified(WindowEvent e) {
20 }
21
22 public void windowDeiconified(WindowEvent e) {
23 }
24
25 public void windowActivated(WindowEvent e) {
26 }
27
28 public void windowDeactivated(WindowEvent e) {
29 }
30
31 public static void main(String args[]) {
32 Frame f = new PerfSlave();
33 SlaveUI theUI = new SlaveUI(f);
34 Dispatcher dispatch = new Dispatcher(theUI);
35 dispatch.start();
36 }
37 }
38
|